package com.jackstraw.jack_base.rules.service;

import com.jackstraw.jack_base.datasource.mybatis.base.service.MyBatisService;
import com.jackstraw.jack_base.rules.dao.database.ImportPackageDao;
import com.jackstraw.jack_base.rules.entity.bo.ImportPackageBo;
import com.jackstraw.jack_base.rules.entity.po.ImportPackageKeyPo;
import com.jackstraw.jack_base.rules.entity.po.ImportPackagePo;
import com.jackstraw.jack_base.rules.entity.po.ImportPackagePoExample;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 导包表  service接口
 *
 * @author zhaozhao 945514650@qq.com
 * @since version:1.0 generatorDate:2022-12-04 14:28:28
 */
public interface ImportPackageService
        extends MyBatisService<ImportPackageDao, ImportPackagePo, ImportPackageBo, ImportPackageKeyPo<ImportPackagePo>, ImportPackagePoExample> {

    /**
     * 通过规则ID查询对应的导包信息
     *
     * @param ruleId 规则ID
     * @return
     */
    List<ImportPackageBo> queryImportSByRuleId(Long ruleId);

    /**
     * 通过规则组ID查询对应规则需要导入的包
     *
     * @param ruleGroupId
     * @return
     */
    Map<Long, List<ImportPackageBo>> queryImportSByRuleGroupId(Long ruleGroupId);
}